//模板类的继承--模板类继承普通类
#include <iostream>
using namespace std;
class Base{
public:
    int B_n;
    Base(int x):B_n(x){
        cout<<"Base类的构造函数"<<endl;
    }
    void show(){
        cout<<B_n<<endl;
    }
};
template<class T>
class Person:public Base{
public:
    T m_n;
    Person(T n,int x):m_n(n),Base(x){
        cout<<"Person类的构造函数"<<endl;
    }
};
int main()
{
    Person<int> a(10,20);
    a.show();
    return 0;
}